<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\JxtArticle;
use App\Models\JxtBanner;
use App\Models\JxtConfig;

class ConfigController extends Controller
{
    public function getConfig($id): \Illuminate\Http\JsonResponse
    {
        $config = JxtConfig::find($id);

        return response()->json([
            'message' => 'success',
            'code' => 0,
            'status_code' => 200,
            'data' => $config
        ]);
    }
}
